package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *    物业角色资源关联PO
 * </desc>
 *
 * @createDate 2017/10/12
 */
@ItlTables("property_role_function")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PropertyRoleFunctionPO extends  BasePO implements Serializable {

    /**
     * 角色id
     */
    @ItlField("role_id")
    private String roleId;

    /**
     * 资源id
     */
    @ItlField("function_id")
    private String functionId;

    /**
     * 项目id
     */
    @ItlField("project_id")
    private String projectId;

    public PropertyRoleFunctionPO(String roleId, String projectId, String functionId){
        this.roleId = roleId;
        this.projectId = projectId;
        this.functionId = functionId;
    }
}